import request from "@/utils/request.js";
const api = {
  // 图片上传
  img: (data) => {
    return request({
      url: "/app/img/index",
      method: "POST",
      data,
    });
  },
  // 登录
  login: (data) => {
    return request({
      url: "/app/User/index",
      method: "POST",
      data,
    });
  },
  //用户协议
  agreement: (data) => {
    return request({
      url: "/app/Agreement/index",
      method: "POST",
      data,
    });
  },
  // 修改密码
  amend: (data) => {
    return request({
      url: "/app/user/pass",
      method: "POST",
      data,
    });
  },
  // 注册
  register: (data) => {
    return request({
      url: "/app/user/add",
      method: "POST",
      data,
    });
  },
};
export default api;
